<template>
  <div>
    <simpleTable :listObject='listObject' :pageObj='pageObj' :columnList='columnList' />
  </div>
</template>

<script>
import simpleTable from '@/components/SimpleTable'
import { optionListPage } from '@/api/hnsjfz/common/index'
import { attendRecordDetail } from '@/api/hnsjfz/attend/record'
export default {
  props: {
    rowItem: {
      type: Object,
      default: () => {
        return {}
      }
    },
  },
  components: {
    simpleTable,
  },
  data() {
    return {
      listObject: {
        list: [],
        total: 0
      }, // 分页列表
      pageObj: {
        pageSize: 20,
        total: 0,
        pageNo: 1
      },
      columnList: [
        { prop: 'userName', label: '审核人', minwidth: '8', align: 'center' },
        { prop: 'decision', label: '审核状态', minwidth: '8', align: 'center' },
        { prop: 'opinion', label: '审核意见', minwidth: '25', align: 'left' },
        {
          prop: 'auditTime', label: '审核时间', minwidth: '10', align: 'center',
          formatter: (row) => { return row.auditTime ? moment(row.auditTime).format("YYYY-MM-DD HH:mm:ss") : '' }
        },
      ],
    };
  },
  computed: {

  },
  watch: {},
  created() {
  },
  mounted() {
    this.getPageList()
  },
  methods: {
    getPageList() {
      optionListPage({ procInstBid: this.rowItem.bid, ...this.pageObj }).then(res => {
        this.listObject = res.data
        this.pageObj.total = res.data.total
      })
    },
  },
};
</script>

<style scoped lang="scss">
</style>
